You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for custom games. Builds off of custom-games-shard-1 (shard 1).
This shard adds support for defining a custom game in a YAML configuration file, parsing that file, and generating code and tests based on the parsed configuration.
We use templates for generating both code and web source files. Note that web codegen is in this shard, but to balance shard sizes, the web templates are in a subsequent shard. The generator builds and its unit tests pass on their own; a full go generate needs shard 4's template sources.
Summarize sends each count's points to its group field while also accumulating phase totals:
autoHull:=score.AutoHullCount*HullAutoPointsValautoPoints+=autoHullsummary.ShipPoints+=autoHull// …teleopHull, autoDeck, teleopDeck all += into summary.ShipPoints …endgameKrakenLair:=score.EndgameKrakenLairCount*KrakenLairEndgamePointsValendgamePoints+=endgameKrakenLairsummary.LairPoints+=endgameKrakenLair
Each ranking-point bonus calls its hand-written logic and tallies bonus RP:
dejabot
changed the title
add support for custom games (shard 2): custom game YAML and code generators
Add support for custom games (shard 2): custom game YAML and code generators
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for custom games. Builds off of
custom-games-shard-1(shard 1).This shard adds support for defining a custom game in a YAML configuration file, parsing that file, and generating code and tests based on the parsed configuration.
We use templates for generating both code and web source files. Note that web codegen is in this shard, but to balance shard sizes, the web templates are in a subsequent shard. The generator builds and its unit tests pass on their own; a full
go generateneeds shard 4's template sources.